<?php echo form_open(base_url() . 'journal/admin/groups/edit/' . $id_group); ?>
<fieldset>
    <?
    foreach ($name_group as $result) {
    ?>
        <p><font color=#C40000>*</font> <?= lang('code_group') ?>:</p><input name="code" type="text" autocomplete="on" maxlength="60" value="<?
        if ($result['code'])
            echo $result['code']; else
            echo set_value('code'); ?>" required> <? echo form_error('code'); ?>
        <p><font color=#C40000>*</font> <?= lang('manager_group') ?>:</p><input name="manager" type="text" autocomplete="on" maxlength="60" value="<?
                                                                            if ($result['manager'])
                                                                                echo $result['manager']; else
                                                                                echo set_value('manager');
    ?>" required> <? echo form_error('manager'); ?>
                                                                            <p><input name="edit_group_submit" type="submit" value="<?= lang('admin_button_update') ?>"></p>
<? } ?>
</fieldset>
</form>